package D12_2;

public class painter{
    public void drawShape(SHAPE shape){
        if (shape==null){
            throw new IllegalArgumentException("形状不能为空！");
        }
        shape.draw();
    }
}

